package gallery.common;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Paging_1_Bean {
	private int currentPage;
	private int totalRecord;
	private int recordSize;
	private int totalPage;
	private int blockSize;
	private int firstPage;
	private int lastPage;
	private int curPos;
	private int num;
	
	public Paging_1_Bean(
		HttpServletRequest request, 
//		HttpServletResponse response,
		List list, int recordSize, int blockSize) {
		currentPage = 1;
		if (request.getParameter("currentPage") != null) {
			currentPage = Integer.parseInt(request.getParameter("currentPage"));
		}
		totalRecord = list.size();
		this.recordSize = recordSize;
	}
}
